package com.ruoyi.userSign.domain;

import com.ruoyi.basicUser.domain.BasicUser;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 用户徽章对象 user_sign
 * 
 * @author ruoyi
 * @date 2025-10-13
 */
public class UserSign extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 序号 */
    @Excel(name = "序号")
    private Long id;

    /** 获得徽章 */
    @Excel(name = "获得徽章")
    private Long badgeId;

    /** 用户 */
    @Excel(name = "用户")
    private Long userId;

    /** 状态 */
    @Excel(name = "状态")
    private String status;

    /** 删除标志（0代表存在 1代表删除） */
    private String delFlag;

//    TODO==============================================================================================================
    // 新增：关联basicUser对象
    private BasicUser basicUser;
    // 新增：需要搜索/展示的basic_user.name字段
    private String userName; // 用于接收前端传递的用户名搜索条件，以及展示用户名
//    TODO==============================================================================================================

    @Override
    public String toString() {
        return "UserSign{" +
                "id=" + id +
                ", badgeId=" + badgeId +
                ", userId=" + userId +
                ", status='" + status + '\'' +
                ", delFlag='" + delFlag + '\'' +
                ", basicUser=" + basicUser +
                ", userName='" + userName + '\'' +
                '}';
    }

    public BasicUser getBasicUser() {
        return basicUser;
    }

    public void setBasicUser(BasicUser basicUser) {
        this.basicUser = basicUser;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }



    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }

    public void setBadgeId(Long badgeId) 
    {
        this.badgeId = badgeId;
    }

    public Long getBadgeId() 
    {
        return badgeId;
    }

    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }

    public void setStatus(String status) 
    {
        this.status = status;
    }

    public String getStatus() 
    {
        return status;
    }

    public void setDelFlag(String delFlag) 
    {
        this.delFlag = delFlag;
    }

    public String getDelFlag() 
    {
        return delFlag;
    }

}
